<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title> - 项目详情</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">
    <style type="text/css">
        .ibox {
            float: left;
            margin-left: 40px;
        }
    </style>
</head>

<body class="gray-bg">
<div class="row">
    <div class="col-sm-9">
        <div class="wrapper wrapper-content animated fadeInUp">
            <div class="ibox">
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-12">
                            <div class="m-b-md">
                                <a href="project_detail.html#" class="btn btn-white btn-xs pull-right">编辑项目</a>
                                <h2>赛事名称:${match.mname}</h2>
                            </div>
                            <dl class="dl-horizontal">
                                <dt>状态：</dt>
                                <dd><span class="label label-primary">${msname}</span>
                                </dd>
                            </dl>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-5">
                            <dl class="dl-horizontal">

                                <dt>项目简介：</dt>
                                <dd>${match.overview}</dd>
                            </dl>
                        </div>
                        <div class="col-sm-7" id="cluster_info">
                            <dl class="dl-horizontal">
                                <dt>开始时间：</dt>
                                <dd>${match.starttime}</dd>
                                <dt>结束时间：</dt>
                                <dd>${match.endtime}</dd>
                            </dl>
                        </div>
                    </div>
                    <div class="row m-t-sm">
                        <div class="col-sm-12">
                            <div class="panel blank-panel">
                                <div class="panel-heading">
                                    <div class="panel-options">
                                        <ul class="nav nav-tabs">
                                            <li>
                                                <a href="project_detail.html#tab-1" data-toggle="tab">团队消息</a>
                                            </li>
                                            <li class="">
                                                <a href="project_detail.html#tab-2" data-toggle="tab">最后更新</a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>

                                <div class="panel-body">

                                    <div class="tab-content">
                                        <div class="tab-pane active" id="tab-1">
                                            <div class="feed-activity-list">
                                                <div class="row">
                                                    <div class="col-sm-4" style="width: 1000px">
                                                        <c:forEach items="${teamlist}" var="team">
                                                            <div class="ibox">
                                                                <a href="teampeople.action?teamid=${team.teamid}&mid=${match.mid}">
                                                                    <div class="ibox-title">
                                                                        <h5>团队名称：${team.teamname}</h5>
                                                                    </div>
                                                                </a>
                                                                <div class="ibox-content">
                                                                    <div class="team-members">
                                                                        <a href="#"><img alt="member" class="img-circle"
                                                                                         src="img/a4.jpg">
                                                                        </a>
                                                                        <a href="#"><img alt="member" class="img-circle"
                                                                                         src="img/a5.jpg">
                                                                        </a>
                                                                        <a href="#"><img alt="member" class="img-circle"
                                                                                         src="img/a6.jpg">
                                                                        </a>
                                                                        <a href="#"><img alt="member" class="img-circle"
                                                                                         src="img/a8.jpg">
                                                                        </a>
                                                                        <a href="#"><img alt="member" class="img-circle"
                                                                                         src="img/a7.jpg">
                                                                        </a>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </c:forEach>
                                                        <c:if test="${user.rid==4}">
                                                            <div class="ibox">
                                                                <div class="ibox-content">
                                                                    <a href="matchaddteam.action?mid=${match.mid}&type=1">
                                                                        <button class="btn btn-info  dim btn-large-dim btn-outline"
                                                                                type="button"><b>+</b></button>
                                                                    </a>
                                                                </div>
                                                            </div>
                                                        </c:if>
                                                    </div>

                                                </div>

                                            </div>

                                        </div>
                                        <div class="tab-pane" id="tab-2">

                                            <table class="table table-striped">
                                                <thead>
                                                <tr>
                                                    <th>状态</th>
                                                    <th>标题</th>
                                                    <th>开始时间</th>
                                                    <th>结束时间</th>
                                                    <th>说明</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <tr>
                                                    <td>
                                                        <span class="label label-primary"><i class="fa fa-check"></i> 已完成</span>
                                                    </td>
                                                    <td>
                                                        文档在线预览功能
                                                    </td>
                                                    <td>
                                                        11月7日 22:03
                                                    </td>
                                                    <td>
                                                        11月7日 20:11
                                                    </td>
                                                    <td>
                                                        <p class="small">
                                                            已经测试通过
                                                        </p>
                                                    </td>

                                                </tr>
                                                <tr>
                                                    <td>
                                                        <span class="label label-primary"><i class="fa fa-check"></i> 解决中</span>
                                                    </td>
                                                    <td>
                                                        会员登录
                                                    </td>
                                                    <td>
                                                        11月7日 22:03
                                                    </td>
                                                    <td>
                                                        11月7日 20:11
                                                    </td>
                                                    <td>
                                                        <p class="small">
                                                            测试中
                                                        </p>
                                                    </td>

                                                </tr>
                                                <tr>
                                                    <td>
                                                        <span class="label label-primary"><i class="fa fa-check"></i> 解决中</span>
                                                    </td>
                                                    <td>
                                                        会员积分
                                                    </td>
                                                    <td>
                                                        11月7日 22:03
                                                    </td>
                                                    <td>
                                                        11月7日 20:11
                                                    </td>
                                                    <td>
                                                        <p class="small">
                                                            未测试
                                                        </p>
                                                    </td>

                                                </tr>

                                                </tbody>
                                            </table>

                                        </div>
                                    </div>

                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-sm-3">
        <div class="wrapper wrapper-content project-manager">
            <h4>项目描述</h4>
            <img src="img/wenku_logo.png" class="img-responsive">
            <p class="small">
                <br>在线互动式文档分享平台，在这里，您可以和千万网友分享自己手中的文档，全文阅读其他用户的文档，同时，也可以利用分享文档获取的积分下载文档
            </p>
            <p class="small font-bold">
                <span><i class="fa fa-circle text-warning"></i> 高优先级</span>
            </p>
            <h5>项目标签</h5>
            <ul class="tag-list" style="padding: 0">
                <li>
                    <a href="project_detail.html"><i class="fa fa-tag"></i> 文档</a>
                </li>
                <li>
                    <a href="project_detail.html"><i class="fa fa-tag"></i> 分享</a>
                </li>
                <li>
                    <a href="project_detail.html"><i class="fa fa-tag"></i> 下载</a>
                </li>
            </ul>
            <h5>项目文档</h5>
            <ul class="list-unstyled project-files">
                <li>
                    <a href="project_detail.html"><i class="fa fa-file"></i> Project_document.docx</a>
                </li>
                <li>
                    <a href="project_detail.html"><i class="fa fa-file-picture-o"></i> Logo_zender_company.jpg</a>
                </li>
                <li>
                    <a href="project_detail.html"><i class="fa fa-stack-exchange"></i> Email_from_Alex.mln</a>
                </li>
                <li>
                    <a href="project_detail.html"><i class="fa fa-file"></i> Contract_20_11_2014.docx</a>
                </li>
            </ul>
            <div class="m-t-md">
                <a href="project_detail.html#" class="btn btn-xs btn-primary">添加文档</a>

            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>

<!-- 自定义js -->
<script src="js/content.js?v=1.0.0"></script>

<script>
    $(document).ready(function () {

        $('#loading-example-btn').click(function () {
            btn = $(this);
            simpleLoad(btn, true)

            // Ajax example
            //                $.ajax().always(function () {
            //                    simpleLoad($(this), false)
            //                });

            simpleLoad(btn, false)
        });
    });

    function simpleLoad(btn, state) {
        if (state) {
            btn.children().addClass('fa-spin');
            btn.contents().last().replaceWith(" Loading");
        } else {
            setTimeout(function () {
                btn.children().removeClass('fa-spin');
                btn.contents().last().replaceWith(" Refresh");
            }, 2000);
        }
    }
</script>

</body>

</html>